import http from "../../common/http.js"
//商品列表
export const goodsList = (data) => {
	return http({
		url: 'api/Goods/goodsList'
	}, data)
}
//分类
export const goodsCategoryList = () => {
	return http({
		url: 'api/Goods/goodsCategoryList',
	})
}
//详情
export const getdetail = (data) => {
	return http({
		url: "api/goods/goodsInfo",
	}, data)
}
//规则
export const agreementDetail = (data) => {
	return http({
		url: "api/agreement/agreementDetail",
	}, data)
}
//团购
export const groupBuy = (data) => {
	return http({
		url: "api/group/groupBuy",
	}, data)
}
// 拼团名单
export const getGroupbuyList = (data) => {
	return http({
		url: "api/group/getGroupbuyList"
	}, data)
}
// 单人
export const personalBuy = (data) => {
	return http({
		url: 'api/group/personalBuy'
	}, data)
}
// 优惠券
export const getUserCouponsList = (data) => {
	return http({
		url: 'api/user/getUserCouponsList'
	}, data)
}
// 抽红包
export const personalTakeRedPackage = (data) => {
	return http({
		url: 'api/group/personalTakeRedPackage'
	}, data)
}
// 退保证金
export const personalRefundPledgeMoney = (data) => {
	return http({
		url: 'api/group/personalRefundPledgeMoney'
	}, data)
}
// 猜你喜欢
export const guessLike = () => {
	return http({
		url: 'api/Goods/guessLike'
	})
}
//小程序码
export const createqrcode = (data) => {
	return http({
		url: 'api/wx/createqrcode'
	}, data)
}
//分享
export const shareTask = () => {
	return http({
		url: 'api/Task/shareTask'
	})
}
//库存
export const goodsSpecsInfo = (data) => {
	return http({
		url: 'api/goods/goodsSpecsInfo'
	}, data)
}
//预约
export const seckillAppointment = (data) => {
	return http({
		url: 'api/Goods/seckillAppointment'
	}, data)
}
//分享
export const h5ShareTask = (data) => {
	return http({
		url: 'api/Task/h5ShareTask'
	}, data)
}
